module.exports = {
	// 获取当前用户信息
	getUserInfo: () => {
		let userInfo = uni.getStorageSync('userInfo');
		return userInfo;
	},
	// 获取当前用户唯一标志
	getUserOpenid: () => {
		let openid = uni.getStorageSync('openid');
		if (openid != null)
			return openid;
		return '';
	},
	
	// 显示错误警告
	showErrMsg: (err) => {
		uni.showToast({
			icon:'none',
			title:'错误' + JSON.stringify(err.errMsg)
		})
	}
}
